<!-- angular通过ng-modal添加模态框时，不需要外层的div，只需从modal-content开始即可 -->
<style>
    .required-error {
        border: 1px solid red;
    }
    .required-success {
        border: 1px solid #cfdadd;
    }
</style>
<div class="modal-content">
    <div class="modal-header">
        <h3 class="modal-title">新增流程节点</h3>
    </div>
    <form class="modal-body form-horizontal">
        <div class="form-group" >
            <label class="col-sm-2 control-label">用户：</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="请输入" ng-model="flow.name">
            </div>
        </div>
        <div class="line-lg pull-in" ></div>
        <div class="form-group" >
            <label class="col-sm-2 control-label">路径：</label>
            <div class="col-sm-10">
                <i class="mm-loading-icon fa fa-spinner fa-spin fa-4x fa-fw" style="font-size: 33px; color: rgb(158, 149, 149);" ng-if="!hideIcon"></i>
                <select class="form-control mm-loading" ng-model="flow.feature" ng-change="selectChange()" style="display: none;">
                    <option value="">请选择</option>
                    <option value="{{feature}}" ng-repeat="feature in featureList">{{feature.path ? feature.path : ""}}/{{feature.featureName ? feature.featureName : ""}}</option>
                </select>
            </div>
        </div>
        <div class="line-lg pull-in" ></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">描述：</label>
            <div class="col-sm-10">
                <textarea class="form-control" rows="3" placeholder="请输入" ng-model="flow.desc"></textarea>
            </div>
        </div>
    </form>
    <div class="modal-footer">
        <button type="button" class="btn btn-primary" ng-click="createClick()">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="cancelClick()">取消</button>
    </div>
</div>
